package com.ssyan.builder.improve;

/**
 * @author ssyan
 * @Description TODO
 * @create 2021/8/28 2:47
 * @Version 1.0
 */
//抽象的建造者
public abstract class HouseBuilder {

    protected House house = new House();

    //将建造的流程写好，抽象的方法
    public abstract void buildBasic();
    public abstract void buildWalls();
    public abstract void roofed();
    public void build(){
        buildBasic();
        buildWalls();
        roofed();
    }

    //建造房子好，将产品返回
    public House buildHouse() {
        return house;
    }


}
